package com.ruoyi.user.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 用户对象 xx_user
 * 
 * @author ruoyi
 * @date 2022-06-17
 */
public class XxUser extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Long userId;

    /** 姓名 */
    @Excel(name = "姓名")
    private String userName;

    /** 年龄 */
    @Excel(name = "年龄")
    private Long userAge;

    /** 爱好（0代码 1音乐 2电影） */
    @Excel(name = "爱好", readConverterExp = "0=代码,1=音乐,2=电影")
    private String userHobby;

    /** 性别（0男 1女 2未知） */
    @Excel(name = "性别", readConverterExp = "0=男,1=女,2=未知")
    private String userSex;

    /** 状态（0正常 1停用） */
    @Excel(name = "状态", readConverterExp = "0=正常,1=停用")
    private String userStatus;

    /** 生日 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "生日", width = 30, dateFormat = "yyyy-MM-dd")
    private Date userBirthday;

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setUserName(String userName) 
    {
        this.userName = userName;
    }

    public String getUserName() 
    {
        return userName;
    }
    public void setUserAge(Long userAge) 
    {
        this.userAge = userAge;
    }

    public Long getUserAge() 
    {
        return userAge;
    }
    public void setUserHobby(String userHobby) 
    {
        this.userHobby = userHobby;
    }

    public String getUserHobby() 
    {
        return userHobby;
    }
    public void setUserSex(String userSex) 
    {
        this.userSex = userSex;
    }

    public String getUserSex() 
    {
        return userSex;
    }
    public void setUserStatus(String userStatus) 
    {
        this.userStatus = userStatus;
    }

    public String getUserStatus() 
    {
        return userStatus;
    }
    public void setUserBirthday(Date userBirthday) 
    {
        this.userBirthday = userBirthday;
    }

    public Date getUserBirthday() 
    {
        return userBirthday;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("userId", getUserId())
            .append("userName", getUserName())
            .append("userAge", getUserAge())
            .append("userHobby", getUserHobby())
            .append("userSex", getUserSex())
            .append("userStatus", getUserStatus())
            .append("userBirthday", getUserBirthday())
            .toString();
    }
}
